﻿<%@ page language="C#" autoeventwireup="true" inherits="Enterprise_EnterpriseInfoList, App_Web_eblcqcaa" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>企业信息列表</title>

    <script language="javascript" type="text/javascript" src="../javascript/gridview.js"></script>

    <script language="javascript" type="text/javascript" src="../javascript/querytable.js"></script>

    <link href="../css/tab.css" rel="stylesheet" type="text/css" />
</head>
<body style="background-color:#d9eefe;">
    <form id="form1" runat="server">
        <div>
            <table width="100%" border="0" style="height: 100%;" class="main-table">
                <tr>
                    <td height="458" valign="top">
                        <table cellspacing="0" class="title_table">
                            <tr>
                                <td style="height: 32px">
                                    <span id="name">
                                        <img alt="" src="../images/title.gif" width="15" height="32" /></span><span id="module">单位列表</span><span
                                            id="help"><asp:LinkButton runat="server" ID="lbtnAdd" Text="添加" OnClick="lbtnAdd_Click"></asp:LinkButton>
                                            <a href='<%=BackUrl %>'>返回</a></span></td>
                            </tr>
                        </table>
                        <table class="datalist_table">
                            <tbody>
                                <tr class="title">
                                    <td colspan="8" style="height: 26px">
                                        <div>
                                            <asp:DropDownList ID="ddlProvince" runat="server" AutoPostBack="True" CssClass="bt-textfield3"
                                                Width="120" OnTextChanged="ddlProvince_TextChanged">
                                            </asp:DropDownList>
                                            <asp:DropDownList ID="ddlCity" runat="server" CssClass="bt-textfield3" AutoPostBack="True"
                                                Width="120" OnTextChanged="ddlCity_TextChanged">
                                            </asp:DropDownList>
                                            <asp:DropDownList ID="ddlCounty" runat="server" CssClass="bt-textfield3" Width="120">
                                            </asp:DropDownList>
                                            <asp:DropDownList ID="ddlTradeCode" runat="server" CssClass="bt-textfield3" Width="200">
                                            </asp:DropDownList>
                                            公司名称：<asp:TextBox ID="txtEnterpriseName" runat="server"></asp:TextBox>
                                        </div>
                                        <span style="width: 40px;">
                                            <input type="image" name="imageField3" id="imageField3" src="../images/report.gif"
                                                style="margin-right: 5px" />
                                        </span><span></span><span>
                                            <asp:LinkButton ID="linkBtnFind" runat="server" OnClick="linkBtnFind_Click">查询</asp:LinkButton></span></td>
                                </tr>
                            </tbody>
                        </table>
                        <asp:GridView ID="gvEnterprises" runat="server" AutoGenerateColumns="False" CssClass="datalist_table"
                            AllowPaging="True" AllowSorting="True" PageSize="10" onmouseover="overIt();"
                            onmouseout="outIt();" Style="margin-top: -1px" OnRowCommand="gvEnterprises_RowCommand">
                            <Columns>
                                <asp:TemplateField HeaderText="选择">
                                    <ItemTemplate>
                                        <asp:CheckBox runat="server" ID="cbxSelect" />
                                        <asp:Label runat="server" ID="labPageID" Visible="false" Text='<%#Eval("EnterpriseID") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="企业机构代码">
                                    <ItemTemplate>
                                        <%#Eval("EnterpriseCode")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="企业名称">
                                    <ItemTemplate>
                                        <%#Eval("EnterpriseName")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="法人代表">
                                    <ItemTemplate>
                                        <%#Eval("LegalPerson")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="详细地址">
                                    <ItemTemplate>
                                        <%#Eval("Address")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="联系电话">
                                    <ItemTemplate>
                                        <%#Eval("LinkPhone")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="操作">
                                    <ItemTemplate>
                                        <asp:LinkButton runat="server" ID="lbtnView" Text="查看" ToolTip="查看企业基本信息" CommandName="OnUpdate" CommandArgument='<%#Eval("EnterpriseID") %>'></asp:LinkButton>
                                        <asp:LinkButton runat="server" ID="btnUpdate" Text="修改" ToolTip="修改企业基础信息" CommandName="OnView" CommandArgument='<%#Eval("EnterpriseID") %>'></asp:LinkButton>
                                        <asp:LinkButton runat="server" ID="lbtnSet" ToolTip="设置为当前查看的企业" 
                                            Text="当前企业" CommandName="OnSet" CommandArgument='<%#Eval("EnterpriseID") %>'></asp:LinkButton>
                                        <asp:LinkButton runat="server" ID="btnDelete" Text="删除"  ToolTip="删除企业信息" CommandName="OnDelete" CommandArgument='<%#Eval("EnterpriseID") %>'
                                            OnClientClick="return confirm('确认要删除吗？');"></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <PagerSettings Visible="false" />
                        </asp:GridView>
                        <div id="iDiv" runat="server">
                            <table class="pagequery_table">
                                <tbody>
                                    <tr>
                                        <td width="160" style='<%=ViewState["style"].ToString() %>'>
                                            <input class="button_65px" type="button" value="全部选择" name="button2" onclick="ChangeCheckBoxsate(this)" />
                                            <asp:Button runat="server" Text="删除所选" CssClass="button_65px" ID="btnDelete" OnClick="OnDeleteAll" />
                                        </td>
                                        <td>
                                            <div id="divPage" class="pages" runat="server">
                                                <asp:Label ID="lbCurrentPageInfo" runat="server" Text="页数：0/1 总行数：0"></asp:Label>
                                                [<asp:LinkButton runat="server" ID="lbtnFirst" Text="首页" CommandName="OnFirstPage"
                                                    OnClick="OnPageChange"></asp:LinkButton>] [<asp:LinkButton runat="server" ID="lbtnPrev"
                                                        Text="上一页" CommandName="OnPrevPage" OnClick="OnPageChange"></asp:LinkButton>]
                                                [<asp:LinkButton runat="server" ID="lbtnNext" Text="下一页" CommandName="OnNextPage"
                                                    OnClick="OnPageChange"></asp:LinkButton>] [<asp:LinkButton runat="server" ID="lbtnLast"
                                                        Text="尾页" CommandName="OnLastPage" OnClick="OnPageChange"></asp:LinkButton>]
                                                跳到<asp:TextBox ID="tbPageIndex" runat="server" Width="32px" Height="12px" onkeypress="return GoToPage()"></asp:TextBox>页<asp:LinkButton
                                                    ID="lbtnGo" runat="server" Text="Go" OnClick="GoPage"></asp:LinkButton>
                                                <asp:DropDownList runat="server" ID="ddlPageSize" AutoPostBack="True" OnSelectedIndexChanged="OnPageSizeChanged">
                                                    <asp:ListItem Value="10" Text="每页显示10行"></asp:ListItem>
                                                    <asp:ListItem Value="20" Text="每页显示20行"></asp:ListItem>
                                                    <asp:ListItem Value="40" Text="每页显示40行"></asp:ListItem>
                                                    <asp:ListItem Value="60" Text="每页显示60行"></asp:ListItem>
                                                    <asp:ListItem Value="80" Text="每页显示80行"></asp:ListItem>
                                                    <asp:ListItem Value="100" Text="每页显示100行"></asp:ListItem>
                                                </asp:DropDownList>
                                            </div>
                                            <div id="divNone" runat="server" style="float: inherit">
                                                没有数据
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
